package jjy;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class SXh {
    public SXh() {
    }

    public static void main(String[] args) {
        String b;
        do {
            Scanner a = new Scanner(System.in);
            System.out.println("请输入");
            b = a.next();
        } while(!b.equals("n"));

        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH.mm.ss");
        String date1 = sdf.format(date);
        System.out.println(date1);
    }
}



